<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'reader-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">带<span class="required">*</span>是必填项。</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sex'); ?>
		<?php echo $form->dropDownList($model,'sex',array('男'=>'男','女'=>'女')); ?>
		<?php echo $form->error($model,'sex'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IDType'); ?>
		<?php echo $form->dropDownList($model,'IDType',array('身份证'=>'身份证','军人证'=>'军人证','学生证'=>'学生证')); ?>
		<?php echo $form->error($model,'IDType'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'IDNum'); ?>
		<?php echo $form->textField($model,'IDNum',array('size'=>21,'maxlength'=>21)); ?>
		<?php echo $form->error($model,'IDNum'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'phoneNum'); ?>
		<?php echo $form->textField($model,'phoneNum',array('size'=>15,'maxlength'=>15)); ?>
		<?php echo $form->error($model,'phoneNum'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'address'); ?>
		<?php echo $form->textField($model,'address',array('size'=>51,'maxlength'=>51)); ?>
		<?php echo $form->error($model,'address'); ?>
	</div>

	

	<div class="row">
		<?php echo $form->labelEx($model,'photoPath'); ?>
		<?php echo $form->textField($model,'photoPath'); ?>
		<?php echo $form->error($model,'photoPath'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '新建' : '保存'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->